﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Teleware.Newbe.Navigation.Web.Domain.Entities;

namespace Teleware.Newbe.Navigation.Web.AppServices
{
    public interface IDepartmentService : IApplicationService
    {
        ListResultDto<SimpleDepartmentDto> GetAll();
        void Remove(RemoveDepartmentIput input);
        DepartmentDto Get(EntityDto<string> input);
    }

    [AutoMapFrom(typeof(Department))]
    public class DepartmentDto : Department, IEntityDto<string>
    {

    }
    [AutoMapFrom(typeof(Department))]
    public class SimpleDepartmentDto : EntityDto<string>
    {
        public string Name { get; set; }
    }

    public class RemoveDepartmentIput : EntityDto<string>
    {

    }
}
